import { request } from '@/utils/request'
import { customNavigate } from '@/utils/route'
Page({
  data: {
    checked: true
  },
  onLoad: function (options) {
  },

  subscriptionHandler({ detail }) {
    this.setData({ checked: detail })
  },

  go(e) {
    const { currentTarget: { dataset: { type } } } = e
    if(type == 'logout') {
      customNavigate({
        url: '/User/pages/Logout/index'
      })
      return;
    }
  }
});
